import QtQuick 2.5
import QtQuick.Window 2.2
import QtQuick.Controls 2.0


Rectangle{
    width: 1280
    height: 800
    color:"cadetblue";
    Rectangle {
        x: 15
        y: 10
        height: 50
        width: 130
        color: "cadetblue"
        border.color: "black"
        border.width: 2
        Text {
            text: "系统功能"
            color: "yellow"
            anchors.centerIn: parent
            font.family: "Ubuntu"
            font.pixelSize: 25
        }
        Image {
            id: back
            x: 1150
            width: 50
            height: 50
            source: "qrc:///images/right.png"
        }
        Text {
            x: 1220
            y: 15
            text: "返回"
            color: "black"
            font.family: "Ubuntu"
            font.pixelSize: 20
        }
        Rectangle {
            x: 1000
            y: 50
            width: 200
            height: 30
            color: "black"
            Text {
                text: "2017-10-29 15:57:55"
                anchors.centerIn: parent
                color: "yellow"
                font.family: "Ubuntu"
                font.pixelSize: 15
            }
        }
        Rectangle {
            x: 1
            y: 90
            width: 1200
            height: 680
            color: "cadetblue"
            border.color: "black"
            border.width: 2
            Rectangle {
                id: recxt
                width: 700
                height: parent.height
                color: "cadetblue"
                border.color: "black"
                border.width: 1
                Rectangle {
                    id: xt1
                    width: parent.width
                    height: 140
                    anchors.top: parent.top
                    color: "cadetblue"
                    border.color: "black"
                    Rectangle {
                        x: 240
                        y: 10
                        width: 150
                        height: 25
                        color: "#1E90FF"
                        border.color: "black"
                        Text {
                            text: "系统状态监视"
                            anchors.centerIn: parent
                            color: "yellow"
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                        }
                    }
                    Rectangle {
                        x: 10
                        y: 55
                        width: 140
                        height: 30
                        color: "white"
                        Button {
                            width: 140
                            height: 30
                            text: "监视通信驱动(Modbus)"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 155
                        y: 55
                        width: 125
                        height: 30
                        color: "white"
                        Button {
                            width: 125
                            height: 30
                            text: "监视通信驱动(PPI)"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 285
                        y: 55
                        width: 125
                        height: 30
                        color: "white"
                        Button {
                            width: 125
                            height: 30
                            text: "监视运行数据库"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 415
                        y: 55
                        width: 140
                        height: 30
                        color: "white"
                        Button {
                            width: 140
                            height: 30
                            text: "查看数据库连接状态"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 560
                        y: 55
                        width: 130
                        height: 30
                        color: "white"
                        Button {
                            width: 130
                            height: 30
                            text: "监视设备数据表"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                }
                Rectangle {
                    id: xt2
                    width: parent.width
                    height: 240
                    anchors.top: xt1.bottom
                    color: "cadetblue"
                    border.color: "black"
                    Rectangle {
                        x: 240
                        y: 30
                        width: 150
                        height: 25
                        color: "#1E90FF"
                        border.color: "black"
                        Text {
                            text: "系统功能"
                            anchors.centerIn: parent
                            color: "yellow"
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                        }
                    }
                    Rectangle {
                        x: 10
                        y: 75
                        width: 140
                        height: 30
                        color: "white"
                        Button {
                            width: 140
                            height: 30
                            text: "系统驱动设置"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 155
                        y: 75
                        width: 125
                        height: 30
                        color: "white"
                        Button {
                            width: 125
                            height: 30
                            text: "项目备份"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 285
                        y: 75
                        width: 125
                        height: 30
                        color: "white"
                        Button {
                            width: 125
                            height: 30
                            text: "数据补齐"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 415
                        y: 75
                        width: 140
                        height: 30
                        color: "white"
                        Button {
                            width: 140
                            height: 30
                            text: "监控系统重启"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 560
                        y: 75
                        width: 130
                        height: 30
                        color: "white"
                        Button {
                            width: 130
                            height: 30
                            text: "WINDOWS重启"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 10
                        y: 130
                        width: 140
                        height: 30
                        color: "white"
                        Button {
                            width: 140
                            height: 30
                            text: "文件拷贝"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 155
                        y: 130
                        width: 125
                        height: 30
                        color: "white"
                        Button {
                            width: 125
                            height: 30
                            text: "文件删除"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 285
                        y: 130
                        width: 125
                        height: 30
                        color: "white"
                        Button {
                            width: 125
                            height: 30
                            text: "SDLTransmit"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                    Rectangle {
                        x: 415
                        y: 130
                        width: 140
                        height: 30
                        color: "white"
                        Button {
                            width: 140
                            height: 30
                            text: "SDLTransmit(二)"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 12
                        }
                    }
                }
                Rectangle {
                    id: xt3
                    width: parent.width
                    height: 80
                    anchors.top: xt2.bottom
                    color: "cadetblue"
                    border.color: "black"
                }
                Rectangle {
                    id: xt4
                    width: parent.width
                    height: 220
                    anchors.top: xt3.bottom
                    color: "cadetblue"
                    border.color: "black"
                    Rectangle {
                        x: 10
                        y: 140
                        height: 30
                        width: 120
                        color: "white"
                        Button {
                            width: parent.width
                            height: parent.height
                            text: "串口调试器"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                        }
                    }
                    Rectangle {
                        x: 140
                        y: 140
                        height: 30
                        width: 120
                        color: "white"
                        Button {
                            width: parent.width
                            height: parent.height
                            text: "屏幕键盘"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                        }
                    }
                    Rectangle {
                        x: 270
                        y: 140
                        height: 30
                        width: 120
                        color: "white"
                        Button {
                            width: parent.width
                            height: parent.height
                            text: "计算器"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                        }
                    }
                    Rectangle {
                        x: 400
                        y: 140
                        height: 30
                        width: 130
                        color: "white"
                        Button {
                            width: parent.width
                            height: parent.height
                            text: "输出系统信息"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                        }
                    }
                    Rectangle {
                        x: 540
                        y: 140
                        height: 30
                        width: 120
                        color: "white"
                        Button {
                            width: parent.width
                            height: parent.height
                            text: "打开记事本"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                        }
                    }
                }
            }
            Rectangle {
                id: recsj
                width: 500
                height: parent.height
                anchors.left: recxt.right
                color: "cadetblue"
                border.color: "black"
                border.width: 1
                Rectangle {
                    id: sj1
                    width: parent.width
                    height: 250
                    color: "cadetblue"
                    border.color: "black"
                    Rectangle {
                        x: 210
                        y: 10
                        width: 225
                        height: 30
                        color: "#1E90FF"
                        Text {
                            text: "数据库连接状态"
                            anchors.centerIn: parent
                            font.family: "Ubuntu"
                            font.pixelSize: 20
                            color: "yellow"
                        }
                    }

                    Text {
                        x: 10
                        y: 50
                        text: "分钟数据A连接状态"
                        width: 200
                        height: 30
                        font.family: "Ubuntu"
                        font.pixelSize: 20
                        color: "yellow"
                    }
                    Rectangle {
                        x: 210
                        y: 45
                        width: 225
                        height: 30
                        color: "cadetblue"
                        border.color: "white"
                        Text {

                            text: "未连接"
                            font.family: "Ubuntu"
                            font.pixelSize: 20
                            color: "black"
                            anchors.centerIn: parent
                        }
                    }
                    Text {
                        x: 10
                        y: 95
                        text: "分钟数据B连接状态"
                        width: 200
                        height: 30
                        font.family: "Ubuntu"
                        font.pixelSize: 20
                        color: "yellow"
                    }
                    Rectangle {
                        x: 210
                        y: 85
                        width: 225
                        height: 30
                        color: "cadetblue"
                        border.color: "white"
                        Text {

                            text: "未连接"
                            font.family: "Ubuntu"
                            font.pixelSize: 20
                            color: "black"
                            anchors.centerIn: parent
                        }
                    }
                    Text {
                        x: 10
                        y: 135
                        text: "用户参数A连接状态"
                        width: 200
                        height: 30
                        font.family: "Ubuntu"
                        font.pixelSize: 20
                        color: "yellow"
                    }
                    Rectangle {
                        x: 210
                        y: 125
                        width: 225
                        height: 30
                        color: "cadetblue"
                        border.color: "white"
                        Text {

                            text: "未连接"
                            font.family: "Ubuntu"
                            font.pixelSize: 20
                            color: "black"
                            anchors.centerIn: parent
                        }
                    }
                    Text {
                        x: 10
                        y: 165
                        text: "用户参数B连接状态"
                        width: 200
                        height: 30
                        font.family: "Ubuntu"
                        font.pixelSize: 20
                        color: "yellow"
                    }
                    Rectangle {
                        x: 210
                        y: 160
                        width: 225
                        height: 30
                        color: "cadetblue"
                        border.color: "white"
                        Text {

                            text: "未连接"
                            font.family: "Ubuntu"
                            font.pixelSize: 20
                            color: "black"
                            anchors.centerIn: parent
                        }
                    }
                }
                Rectangle {
                    id: sj2
                    width: parent.width
                    height: 150
                    color: "cadetblue"
                    border.color: "black"
                    anchors.top: sj1.bottom
                    Text {
                        y: 2
                        anchors.horizontalCenter: parent.horizontalCenter
                        text: "仪表单位设定"
                        font.family: "Ubuntu"
                        font.pixelSize: 17
                        color: "yellow"
                    }
                    Text {
                        x: 60
                        y: 20

                        text: "1#锅炉"
                        font.family: "Ubuntu"
                        font.pixelSize: 15
                        color: "yellow"
                    }
                    Text {
                        x: 350
                        y: 20

                        text: "2#锅炉"
                        font.family: "Ubuntu"
                        font.pixelSize: 15
                        color: "yellow"
                    }
                    Rectangle {
                        x: 60
                        y: 45
                        radius: 5
                        height: 80
                        width: 110
                        border.color: "white"
                        color: "cadetblue"

                        RadioButton {
                            id: bt1
                            anchors.top: parent.top
                            anchors.topMargin: 15
                            text: qsTr("mg/NO2")
                            checked: true

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: bt1.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: bt1.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: bt1.down ? "#17a81a" : "#21be2b"
                                    visible: bt1.checked
                                }
                            }
                        }
                        RadioButton {
                            anchors.top: bt1.bottom
                            id: control
                            text: qsTr("PQ%")

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: control.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: control.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: control.down ? "#17a81a" : "#21be2b"
                                    visible: control.checked
                                }
                            }
                        }
                    }
                    Rectangle {
                        x: 65
                        y: 40
                        width: 57
                        height: 20
                        color: "cadetblue"
                        Text {

                            text: "仪表单位"
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                            color: "yellow"
                        }

                        }
                    Rectangle {
                        x: 350
                        y: 45
                        radius: 5
                        height: 80
                        width: 110
                        border.color: "white"
                        color: "cadetblue"

                        RadioButton {
                            id: bt2
                            anchors.top: parent.top
                            anchors.topMargin: 15
                            text: qsTr("mg/NO2")
                            checked: true

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: bt2.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: bt2.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: bt2.down ? "#17a81a" : "#21be2b"
                                    visible: bt2.checked
                                }
                            }
                        }
                        RadioButton {
                            anchors.top: bt2.bottom
                            id: control1
                            text: qsTr("PQ%")

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: control1.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: control1.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: control1.down ? "#17a81a" : "#21be2b"
                                    visible: control1.checked
                                }
                            }
                        }
                    }
                    Rectangle {
                        x: 355
                        y: 40
                        width: 57
                        height: 20
                        color: "cadetblue"
                        Text {

                            text: "仪表单位"
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                            color: "yellow"
                        }

                        }
                }
                Rectangle{
                    id:sj3
                    width: parent.width
                    height: 250
                    anchors.top: sj2.bottom
                    border.color: "black"
                    color:"cadetblue"
                    Text {
                        y: 2
                        anchors.horizontalCenter: parent.horizontalCenter
                        text: "烟气湿度参数设定"
                        font.family: "Ubuntu"
                        font.pixelSize: 17
                        color: "yellow"
                    }
                    Text {
                        x: 60
                        y: 20

                        text: "1#锅炉"
                        font.family: "Ubuntu"
                        font.pixelSize: 15
                        color: "yellow"
                    }
                    Text {
                        x: 350
                        y: 20

                        text: "2#锅炉"
                        font.family: "Ubuntu"
                        font.pixelSize: 15
                        color: "yellow"
                    }
                    Rectangle {
                        x: 60
                        y: 45
                        radius: 5
                        height: 120
                        width: 120
                        border.color: "white"
                        color: "cadetblue"

                        RadioButton {
                            id: bt3
                            anchors.top: parent.top
                            anchors.topMargin: 15
                            text: qsTr("干湿氧计算")
                            checked: true

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: bt3.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: bt3.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: bt3.down ? "#17a81a" : "#21be2b"
                                    visible: bt3.checked
                                }
                            }
                        }
                        RadioButton {
                            anchors.top: bt3.bottom
                            id: control2
                            text: qsTr("手工设定")

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: control2.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: control2.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: control2.down ? "#17a81a" : "#21be2b"
                                    visible: control2.checked
                                }
                            }
                        }
                        RadioButton {
                            anchors.top: control2.bottom
                            id: control4
                            text: qsTr("直接测量")

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: control4.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: control4.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: control4.down ? "#17a81a" : "#21be2b"
                                    visible: control4.checked
                                }
                            }
                        }
                    }
                    Rectangle {
                        x: 65
                        y: 40
                        width: 65
                        height: 20
                        color: "cadetblue"
                        Text {

                            text: "湿度选择值"
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                            color: "yellow"
                        }

                        }
                    Rectangle {
                        x: 350
                        y: 45
                        radius: 5
                        height: 120
                        width: 120
                        border.color: "white"
                        color: "cadetblue"

                        RadioButton {
                            id: bt4
                            anchors.top: parent.top
                            anchors.topMargin: 15
                            text: qsTr("干湿氧计算")
                            checked: true

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: bt4.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: bt4.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: bt4.down ? "#17a81a" : "#21be2b"
                                    visible: bt4.checked
                                }
                            }
                        }
                        RadioButton {
                            anchors.top: bt4.bottom
                            id: control3
                            text: qsTr("手工设定")

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: control3.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: control3.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: control3.down ? "#17a81a" : "#21be2b"
                                    visible: control3.checked
                                }
                            }
                        }
                        RadioButton {
                            anchors.top: control3.bottom
                            id: control5
                            text: qsTr("手工设定")

                            indicator: Rectangle {
                                implicitWidth: 14
                                implicitHeight: 14
                                x: control5.leftPadding
                                y: parent.height / 2 - height / 2
                                radius: 7
                                border.color: control5.down ? "#17a81a" : "#21be2b"

                                Rectangle {
                                    width: 6
                                    height: 6
                                    x: 4
                                    y: 4
                                    radius: 3
                                    color: control5.down ? "#17a81a" : "#21be2b"
                                    visible: control5.checked
                                }
                            }
                        }
                    }
                    Rectangle {
                        x: 355
                        y: 40
                        width: 65
                        height: 20
                        color: "cadetblue"
                        Text {

                            text: "湿度选择值"
                            font.family: "Ubuntu"
                            font.pixelSize: 15
                            color: "yellow"
                        }

                        }

                }
            }
        }
    }

    //    MainForm {
    //        anchors.fill: parent
    //        mouseArea.onClicked: {
    //            Qt.quit();
    //        }
    //    }
}
